using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MMM.Core.Domain;
using ServiceStack.ServiceHost;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;


namespace MMM.Services.Type
{
    [Serializable]
    [Route("/api/permission", "POST,PUT")]
    public class UserPermission : EntityBase<UserPermission>
    {
        /// <summary>
        /// 显示顺序
        /// </summary>
        public int Index { get; set; }
        /// <summary>
        /// 功能ID
        /// </summary>
        [Required]
        public Guid? FID { get; set; }
        /// <summary>
        /// 功能名称
        /// </summary>
        [StringLength(50)]
        [Required]
        public String FName { get; set; }
        /// <summary>
        /// 权限
        /// </summary>
        [Required]
        public int Value { get; set; }
        /// <summary>
        /// 角色ID
        /// </summary>
        public Guid? RoleID { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        [Required]
        public int Type { get; set; }

    }
}
